﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentManagerSystem
{
    public class Student
    {
        public Student()
        {
            Score = new Score();
        }
        public int ID;
        public string Name;
        public E_SexType Sex;
        public E_GradeType Grade;
        public int Class;

        public string Phone;
        public string Email;
        public string Address;
        public string QQ;

        public Score Score;
        public override string ToString()
        {
            string ret;
            ret = string.Format("学号:{0}  名字:{1}  性别:{2}  年级:{3}  班级:{4} ", ID, Name, Sex, Grade, Class);
            ret = ret + "\n";
            for (E_CourseType i = E_CourseType.None; i < E_CourseType.All; i++)
            {
                ret = ret + string.Format("\t{0}:{1}", (i + 1), Score.GetScore(i + 1));
            }
            return ret;
        }
    }
}
